﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DDD4Fun.Bridge
{
    //接口
    public interface Operator
    {
        string add();
        string minus();
    }

    //接口实现 1
    public class ClassicOperator : Operator
    {

        #region Operator Members

        public string add()
        {
            return "ClassicOperator.add";
        }

        public string minus()
        {
            return "ClassicOperator.minus";
        }

        #endregion
    }

    //接口实现 2
    public class BasicOperator : Operator
    {

        #region Operator Members

        public string add()
        {
            return "BasicOperator.add";
        }

        public string minus()
        {
            return "BasicOperator.minus";
        }

        #endregion
    }
}
